﻿using System;
using System.IO;
using System.Windows.Markup;
using System.Collections.Generic;
using Petra.Gis;
using Petra.Gis.Geometry.Support;
using Petra.Gis.RenderingServices.GDIPlus;
using Petra.Gis.ReferenceSystemServices;
using Petra.Gis.DataServices.SHP;
using Petra.Gis.DataServices.GDO.Sqlserver;


namespace testBitmapMap
{
  class Program
  {


    public static byte[] StringToByteArray(String hex) 
    { 
      int NumberChars = hex.Length;
      byte[] bytes = new byte[NumberChars / 2];

      for (int i = 0; i < NumberChars; i += 2)  
        bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), 16);

      return bytes;
    }





    static void Main(string[] args)
    {

      //string valss = "E610000001148716D9CEF7D34740D7A3703D0A975EC08716D9CEF7D34740CBA145B6F3955EC0";

      //byte[] bs = StringToByteArray(valss);


      //MemoryStream ms = new MemoryStream(bs);

      //BinaryReader br = new BinaryReader(ms);


      ////LINESTRING (47.656 -122.36, 47.656 -122.343)

      //for (int i = 0; i < bs.Length; i++)
      //{

      //  br.BaseStream.Seek(i, SeekOrigin.Begin);
      //  byte leng = br.ReadByte();
      //  double adam = br.ReadDouble();
      //  double adam1 = br.ReadDouble();
      //}

      //testRaster.testRasterTransformed();
      //testRenderVectorPolygons();
      //testSHP();
      //testSHPAndRaster.testSHPAndTransformedRaster();
   
    }


  }
}
